﻿using System.Runtime.InteropServices;

namespace SpeedUp
{
    class modMain
    {
        [DllImport("kernel32.dll")]
        public static extern int SetProcessWorkingSetSize(int hProcess, int dwMinimumWorkingSetSize, int dwMaximumWorkingSetSize);
        [DllImport("kernel32.dll")]
        public static extern int GetCurrentProcess();
        public static void ReduceMem()
        {
            SetProcessWorkingSetSize(GetCurrentProcess(), -1, -1);
        }
    }
}